#! /usr/bin/env fish

set -x ANYDEV_HOME (dirname (realpath (status --current-filename)))

# MKDIR
if not test -d $ANYDEV_HOME/app
	mkdir app/
end

if not test -d $ANYDEV_HOME/cache
	mkdir cache/
end

# export path
set -x ANYDEV_APP_HOME	$ANYDEV_HOME/app
set -x ANYDEV_CACHE_HOME $ANYDEV_HOME/cache
set -x ANYDEV_CONFIG_HOME $ANYDEV_HOME/config

# init fish
source $ANYDEV_CONFIG_HOME/fish/init.fish

set -l APP_BIN "$ANYDEV_APP_HOME/bin"

if not contains $APP_BIN $PATH
    set -x PATH $APP_BIN $PATH
end

# setup fish


# setup nvim
